Pregunta de entrevista de Amazon

valid brackets on leetcode and we dove a bit deeper