結果 : application of stack in backtracking