In this exercise you will be writing code to retrieve the factory employees.
Employees have an ID, a name and a department name, like in the tim-from-marketing exercise.
The first field of an employee is always an integer number, but the name and the department name may be empty or null.
The class constructor receives a parameter of type List, which is populated in the tests.
You will be writing two methods: getEmployeeById(int) and getEmployeeDetailsById(int).
Implement the getEmployeeById(int) method so that it returns an Optional object.
If the employee does not exist, returns an empty Optional instance.
Implement the getEmployeeDetailsById(int) method to return a string containing the id, the name and the department of a given employee:
getEmployeeDetailsById(1) => "1 - Tim - Marketing"
getEmployeeDetailsById(3) => "3 - Steve - Engineering"If the employee does not exist or is null, it returns No employee found for id: [id].