Question d’entretien chez Arm

Valid parenthesis problem. Can be found on leetcode