Two Pointer Approach Leetcode Interview Sql