Cognizant interview question

write query to find the second highest salary maximum of a subarray