Question d’entretien chez HARMAN

In dsa they asked valid parenthesis problem