Catalan number- problem

Getting wrong answers.

Try this code


If this will not work then please give me question link.