Added solution to Stamp with Memoized DP