Problem 20 complete in Ruby