Akamai Interview Question

Write a code to check if the parentheses are balanced