Pergunta de entrevista da empresa Microsoft

Puzzles can be tricky, ability to solve problems quickly is generally what MS looks for.