Two Pointer Leetcode Problems W3schools Python