Two Pointer Leetcode Problems Sql Practice