Has Path Leetcode Python Practice