problem 13

kind of trivial with automatic bignums in ruby