Jane Street Interview Question

Parse a parentheses expression using recursion