Sensia Interview Question

Random walk problem different cases