AKUNA CAPITAL interview question

Dynamic program, algorithms