Counting inversions

Sign in to test your solution.