CountInversions Exercises