problems in dynamic programming 7432917