from functools import reduce


def solve(n, ar):
    """
    Return the sum of the elements in array, ar of size n.
    This is the same problem as "Simple Array Sum" but the twist is that the
    elements of the array are in the order of 10^10. In python, however, values
    are autocast to whatever type/size they need to be so we don't actually have
    to change anything.
    """
    # As before, we use the reduce function to calculate the sum.
    return reduce((lambda x, y: x + y), ar)