Question d’entretien chez HiBob

So, in their predefined java project, there are 2 classes: MeetingRoom.java public class MeetingRoom { int capacity; String roomName; } and MeetingRoomFinder.java import java.time.LocalDate; import java.util.List; import java.util.Optional; public class MeetingRoomFinder { public List meetingRooms; public MeetingRoomFinder(List meetingRooms) { this.meetingRooms = meetingRooms; } public Optional bookMeetingRoom(LocalDate date, int numOfPeople) { return null; } } and they asked me to implement the method bookMeetingRoom to return an available room for that date, with the smallest capacity that sufficient for that number of people.