Cognizant interview question

Basic C program like factorial using recurssion and sorting of an array