Bloomberg Interview Question

They asked me to code a problem that was based on inversions algorithms.