public int findRightPositionOf(int i) {

        for (int j = i; j < this.permutArray.length; j++) {
            if (permutArray[j] == i || -permutArray[j] == i) {
                return j;
            }
        }

        return 0;
    }