Time complexity of backtracking algorithm. I don't know when it is n! or 2^n.