Capgemini Interview Question

Sort and print max salary of a custom object list using java 8