Answer for State Space Search
In state space search, we want to find a sequence of operators that will lead from a start state to a goal state.
Each call to the search function returns either nil (failure) or a list of operators that lead to a goal state. At each state, if applying an operator leads to a goal, we cons that operator onto the list of operators returned from below by the search.