How would you convert an easy recursion problem with overlapping subproblems into a dynamic programming solution?