Two Pointer Technique Leetcode Javascript Solutions