You are the owner of a DVD rental store. There are N customers who want to rent a DVD of ‘The Matrix 4’ movie. For each customer you collected three pieces of information: the day they want the DVD, the day they will return the DVD and how much they will pay for it. If a DVD is returned on Day X, then it is available for rent from the same day X.
This is a companion discussion topic for the original entry at https://toph.co/p/g-dvd-rental-store