Solving a Google Interview Question | Hacker News Reader