def index_power(array, n):
    if len(array) > n:
        result = array[n] ** n
    else:
        result = -1
    return result

b151f5a1a0af3d192b926072d02aca01aa995fc3
<mask token>

def index_power(array, n):
    if len(array) > n:
        result = array[n] ** n
    else:
        result = -1
    return result
