Counting Inversions

Solution to Rosalind Algorithmic Heights Problem 019: Counting
Inversions