Visa Inc. Interview Question

Check if a number is a palindrome. Check if balanced parenthesis/brackets ([{}])