Solved #15, in Ruby. Sorry, lisp