AKUNA CAPITAL interview question

Some sort of dynamic programming question