Pergunta de entrevista da empresa YES

How did you solve that puzzle?