AKUNA CAPITAL Interview Question

Markov chain, dynamic programming, combinatorics, very easy