Solved 10327 Flip Sort

Basically a bubble sort but have to count exchange.
Did it with a merge sort.