Hong wants you to sort a given array. Hong is good at sorting, so he wants to make it more difficult.
Each time, you can only choose two adjacent elements and swap them.Hong wants to know how many swaps do you need at least to make the array in ascending order.