Booking.com Interview Question

A simple Vanilla JS based implementation