Razorpay interview question

2) Bracket/ Paranthesis matching -> strings