Leetcode 11 Two Pointer Approach Python