AKUNA CAPITAL interview question

Standard dynamic programming