Cognizant interview question

what is recursion and write a code for the same?