Python puzzle solution (Hacker School 2013) | Hacker News Reader