Exponential to Linear Complexity using Memoization | Hacker News Reader