Cognizant Interview Question

2 Coding and 2 Database SQL question