Pergunta de entrevista da empresa IBM

Logical tasks, probability and combinatorics