Two Pointers Questions Leetcode Sql Window