Tally Solutions Interview Question

Count inversion in an array