Pergunta de entrevista da empresa Invisible Technologies

How would you solve this problem?