IBM interview question

Logical tasks, probability and combinatorics