Question #1 : LRU
Question #2: You are designing a ticket purchasing system for an upcoming concert. Implement two functions:
String getReservationNumber() -- returns a String of the reservation number for a given ticket.Boolean confirmReservation (String reservationNumber) -- returns true or false depending on whether the ticket was confirmed within N (say 30) seconds.Conditions:
Follow up:
I didn't have enough time left to finish implementing the second one and interviewer told me they would not be moving forward at the end of the interview (lol, but appreciated the transparency).