
The function call is $\texttt{f(5)}$.
In $\texttt{f(5)}$, $\texttt{5}$ is printed and then $\texttt{g(4)}$ is called.
In $\texttt{g(4)}$, $\texttt{4}$ is printed and then $\texttt{f(2)}$ is called.
In $\texttt{f(2)}$, $\texttt{2}$ is printed and then $\texttt{g(1)}$ is called.
In $\texttt{g(1)}$, $\texttt{1}$ is printed and then $\texttt{f(-1)}$ is called.
In $\texttt{f(-1)}$, the condition $\texttt{n <= 0}$ is true, so it returns.
Therefore, the output is $\texttt{5\ 4\ 2\ 1}$
Answer: B