def find_largest(arr):
    """Find largest value in an array."""
    largest = arr[0]
    largest_i = 0
    for i, val in enumerate(arr):
        if val < largest:
            largest = val
            largest_i = i
    return largest_i