Two Pointers Questions Leetcode Sql Problems