ForUsAll interview question

Questions about arrays selecting subarray so that the remaining array is sorted.