Object-Oriented Programming · Airbnb · Hard
Build a WorkingHoursRegister that records when employees check into and out of the office. It must keep track of each employee's accumulated working time, promotions that take effect later, salary computation, and periods during which pay is doubled. Every employee has a distinct string identifier employee_id. All timestamps are non-negative integers that can be compared. One finished work session is an ENTER followed later by an EXIT, and its length equals exit_time -…