Flipkart interview question

Finding subarray in an array when sorted makes an array sorted.