class Permutation {

    public int firstIndexOfDifference(Permutation other) {
        int r = 0;
        while ((r < values.length) && values[r] == other.get(r)) {
            r++;
        }
        return r;
    }

    public  Permutation(int size);
    public  Permutation(int... values);
    public  Permutation(Permutation other);

}