Solved problem 14 with DP