Qubole interview question

Maximum matching parenthesis in input string