Doubt in the solution shared with us

The link to solution done by prateek bhaiya is https://ide.codingblocks.com/s/5973. I think the answer should not only consider the subarrays where one part is from sv1 and another from sv2 but it should also include cases where ans is purely from sv1 and purely from sv2 as well. Am i wrong???