Leetcode Problem On Array Meaning In Python