Two Pointer Technique Leetcode Sql Problems