Two Pointer Technique Leetcode Problems Sql