sliding window
Sum of 2 elements given a list