Maven Interview Question

Probability and sequence questions. Easy to medium level.