Reddit Solutions in Ruby.