Pregunta de entrevista de ProModel

how would you sole this problem