The first parameters (5) is the size of the array next is an array of integers the total of distance is 12 as per the calculation below. 10-11=1 11-7=4 7-12=5 12-14=2 Total distance-1+4+5+2=12 ...