AKUNA CAPITAL interview question

dynamic programing in python and leetcode hard