In Time Tec Interview Question

To check all the parentheses in a programme is balanced.