Given an array of integers, find the sum of its elements.
Simple Array Sum
time complexity is O(N)
O(N)
space complexity is O(1)
O(1)
Just sum it up.
def simpleArraySum(ar): return sum(ar)