Ques 4: Write a program that reads a sequence of integers into an array and that computes the alternating sum of elements in the array. For example, if the input data is 1 3 5 7 9 then it computes 1+5+9=15