Leetcode 856 Python Difficulty Walking