Recursion And Backtracking Leetcode Python Practice