Spotify Interview Question

Check for balanced parentheses?