Two Pointer Technique Problems Leetcode Sql 50