Pregunta de entrevista de Lime Brokerage LLC

The first question is about valid parentheses.