Permutation/8/25731486/Inversions/Sign/Exercise

Compute, for the permutation

the number of inversions and the sign.