easy121 dailyprogrammer memoization trick