Pergunta de entrevista da empresa Freshworks

Write a program for paranthesis matching