The Synacor Challenge, solved using Ruby