Leetcode 3248. Snake in Matrix | Hello Interview