def sum_squared(n)
(1..n).inject(:+) ** 2
end
def square_sums(n)
(1..n).map { |i| i ** 2 }.inject(:+)
def difference(n)
sum_squared(n) - square_sums(n)
def solution
difference(100)