Pergunta de entrevista da empresa Microsoft

- to solve a non-coding, logical thinking problem