Cognizant interview question

Query to bring max salary