Starting closest numbers algorithm
Solved with looping through sorted array