Question d’entretien chez Flipkart

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