perminv takes as argument a permutation. perminv returns the permutation that is the inverse of the permutation given as argument. Input :
Output