Two Pointer Leetcode Problems Html Tags