Two Pointer Approach Leetcode Playground Python