Pregunta de entrevista de J.P. Morgan

Check that brackets are balanced in a string input