Pergunta de entrevista da empresa Maven

Probability and sequence questions. Easy to medium level.