Leetcode 11 Two Pointer Approach In Python