LTM Limited Interview Question

Balanced paranthesis coding problem from leetcode