IMDb Interview Question

Count How Many Swaps in an array