Add solution to get index of closing parenthesis