Leetcode Problems And Solutions Python Snake