Cognizant Interview Question

SQL queries, data structures