AKUNA CAPITAL Interview Question

Dynamic programming.