Leetcode Easy Question Of Array Initialization Python Snake