Pergunta de entrevista da empresa SAP

Online coding question was that we have to design a Compiler that will check whether brackets in a program is closed or not Example - {(<>) Above example tells that} this bracket is not closed so we have to give the answer in yes or no