Emil decided to split A into continuous subarrays so that each integer is contained in exactly one subarray.