sum of integers solution