I am not good at DP and trying to improve with practice over time. I was trying to solve [this][1] problem. Given prices and favor-value of n items, determine the max value