Programming Question-1:Inversion Counter - implementing SimpleInversionCounter with O(n^2)