Maven interview question

Probability and sequence questions. Easy to medium level.