We have not given you the answer in big O notation like you asked for. I'm not going to give it to you because it looks like homework but if you know that it visits all the nodes once it shouldn't be hard to figure out.
to determine the big o for my understanding.
just choose the upper Big O and take its as my complexity
i just want to know since it's not an while loop or for loop.
and i can't really get it how to determine the Big O
the recursive function i search at google
i might add that the runtime of this algorithm isn't all depending on the complexity,
the algorithm contains a lot of function calls, this will cause considerable overhead.