Thanks for this quiz, it was actually quite fun! You can find my 
solution here:

http://pastie.org/228592

I didn't expect my code to become this concise when I first read the 
problem statement, but I guess that's just the way Ruby works :)

Matthias.
-- 
Posted via http://www.ruby-forum.com/.