Backtracking Algorithm Python Example Codes