ION Group Interview Question

Check if a parenthesis is balanced.