Pergunta de entrevista da empresa ProModel

how would you sole this problem