Given an integer(k) and list of integers, count number of valid distinct pairs of integers(a,b) in list for which a+k=b. Two pairs of (a,b) and (c,d) are considered distinct if atleast one element of (a,b) doesn't belong to (c,d)
n=4
numbers=[1,1,1,2]
k=1