Citadel interview question

Longest matching parenthesis