Goldman Sachs Interview Question

Data structure and algorithms, Markov Chain.