Permutations in Ruby from scratch | Hacker News Reader