Pregunta de entrevista de One Acre Fund

Order optimization problem in Excel