Booking.com Interview Question

Hackerrank Q(s): 3. 2D Lists