Question d’entretien chez Qualcomm

Hackerrank: Balanced brackets