Sensia interview question

Random walk problem different cases