Capgemini Interview Question

write a comparator using stream to get second largest salary.