class Permutation {

    public List<Integer> getOrbit(int element) {
        List<Integer> orbit = new ArrayList<Integer>();
        orbit.add(element);
        int i = values[element];
        while (i != element && orbit.size() < values.length) {
            orbit.add(i);
            i = values[i];
        }
        return orbit;
    }

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

}