NextPermutation
SearchinRotatedSortedArray