Cognizant Interview Question

sql queries