Question d’entretien chez Meta

Find the two smallest contiguous subarrays in an array