Pergunta de entrevista da empresa Knowit

How would you solve this issue?