Restroworks Interview Question

Dynamic programming based real life problem (very tough)