Pergunta de entrevista da empresa World 50 Group

How would you solve this problem?