Citadel Interview Question

Longest matching parenthesis