Solution to SynacorChallenge, written in Ruby.