Last Updated: February 25, 2016
·
417
· halan

Simple Casting out nines in Ruby

number.each_char.map(&:to_i).reduce(:+)