9- Sorting using stream and generating output in array and List format
Write a code for employee which contains information like id , name , department and salary and sort in ascending or descending order on the basis of any information like salary, department