Sabre interview question

OOP, structures, coding task with KISS and YAGNI principles