Pregunta de entrevista de Duo Security

Write a function to check for valid brackets