Two Pointer Method Leetcode Solutions Cpp