Catalan numbers problem

getting wrong answer