54321, the reversed value of n, is returned from the function.

 

Explanation