Driver program
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ 8 , 4 , 2 , 1 ] NEW_LINE n = len ( arr ) NEW_LINE print ( " Number ▁ of ▁ inversions ▁ are ▁ : ▁ " , getInvCount ( arr , n ) ) NEW_LINE DEDENT