I am trying to solve this dp [problem](https://onlinejudge.org/index.php?option=onlinejudge&Itemid=8&page=show_problem&problem=503) in iterative way , but i got WA ↵
this my code [https://ideone.com/Etw1q8] ↵
i am creating all possible sums then minimize for ans
this my code [https://ideone.com/Etw1q8] ↵
i am creating all possible sums then minimize for ans