Pregunta de entrevista de Leverage Edu

Stack based balanced paranthesis, easy followup