BNY Interview Question

Java 8 Streams Questions : 1. Convert a list to Map Based on Gender in EMP class 2. Find highest salary from EMP class.