v1. works for contiguous-two subarray