Two Pointer Leetcode Problems Sql Injection