new coding exercise

to implement counting the inversion of an array.