Custora interview question

Dynamic Programming problems