Booking.com interview question

Merged interval quesstions on leetcode