Time Complexity is O(N^2)
Find the minimun value of the array.
Sorted from left side.
Last element need not have to be sort. (n-1)passes.