Two Pointer Array Problems Leetcode 75 Solution Tree