Ruby solution to the Facebook ByteLand Programming Challenge