Getting WA in Catalan Number problem

Getting wrong answer for 4 test cases. Please tell where my code is wrong.
My solution link: https://ide.codingblocks.com/s/140215