Pergunta de entrevista da empresa Adobe

Puzzles, they are always difficult.