Pancake Sort Algorithm
Given an unsorted array , sort the array when with only using the operation flip(a,i).flip(a,i) means reversing the array a from index 0 to i
Time-complexity: O(n^2), In-place, Not-stable
Algorithm Find the max element index max_i,flip(a,i),flip(0,len-1)(now max is at its right position), decrease len by 1