Pregunta de entrevista de Amazon

asked minimization LC Med problem