AKUNA CAPITAL interview question

Dynamic programming and array questions