Capgemini interview question

write a comparator using stream to get second largest salary.