Two pointer technique leetcode, in two, into two separate parts, as halves