Amazon Interview Question

Implement a function to return whether or not the parentheses in a string are balanced