


Line 1 : An Integer N i.e. size of array
Line 2 : N integers which are elements of the array, separated by spaces
Sum
1 <= N <= 10^6
It is advisable to declare an array with a size that can accommodate all the elements, considering that N has a maximum value of 10^5.