week1-inversion count
+ align code according to checkstyle