How to solve a hard programming interview question | Hacker News Reader