Capgemini Interview Question

How to get 2nd max salary per department