Booking.com Interview Question

Hackerrank Q(s): 2. Array and List of Lists