HackerRank – A Very Big Sum

Take long long as data type as it will save value 10^10 times that means A[i] value can be 1000000000

Reference: http://bdclassroom.com/video/hackerrank-a-very-big-sum-algorithm-warmup-c-version/

Java solution:

Reference:http://programmingssolution007.blogspot.com/2015/09/a-very-big-sum.html