Recursion And Backtracking Leetcode Playground Python