Cognizant interview question

Question on C, DSA and SQL