def new_location(new_index, n):
    """ Find new location

    Iteratively follow pointers to new location.

    Parameters
    ----------
    new_index: list, Should be initialized from range
    n: int

    Returns
    -------
    int
    """

    while new_index[n] != n:
        n = new_index[n]
    return n