Create printInversions.java