Minimum Steps To Destination Leetcode Python