Add memoized problem 14 solution.

first pull request buddy!