sum-of-multiples solution