Two Pointer Leetcode Problems Sql Developer