Last Updated: February 25, 2016
·
401
· halan

Simple Casting out nines in Ruby

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