Pergunta de entrevista da empresa IntegraFEC

How would you solve this programming problem?