1) Write a program to calculate the difference of the elements stored in an array.