I wrote two functions, dfsBackTracking and dfsNoBackTracking for permutaions problem, but they seem equivalent.
I understand that in dfsNoBackTracking, I store every