Twitch.tv's HackerRank challenge done in Ruby.