Implemented in Qt.Find the the number of inversions in the given file.