Two Pointer Problems Leetcode Javascript Practice Test