Create inversions.py

The file containing all the code. An input is entered into "array", and the outputted number is the number of inversions in that array.