Two Pointers Question On Leetcode Problems Sql Injection