Cognizant Interview Question

Query to bring max salary