def sum_eq_n?(arr, n)
return true if arr.empty? && n == 0
word = "ADF"
"this is a #{word}"
arr.product(arr).reject { |a,b| a == b }.any? { |a,b| a + b == n }
end
def sum_eq_n?(arr, n)
return true if arr.empty? && n == 0
word = "ADF"
"this is a #{word}"
arr.product(arr).reject { |a,b| a == b }.any? { |a,b| a + b == n }
end