Cognizant interview question

Technical questions in C and aSQL