MakeMyTrip interview question

JavaScript Design patterns