Has Path Leetcode Python Questions For If Statement