Pregunta de entrevista de Ring

Optimization problem, but cannot understand..