Interview problems in Ruby | Hacker News Reader