Question d’entretien chez Amazon

Technical question was Greedy minimization problem