Sollicitatievraag bij PropertyGuru Group

The validate parenthesis based on stack DSA question. Optimise a existing API.