Doubt in making the inverse array recursively

I have tried the following question using recursion but it always return me array where all elements are 0, the new array does not get appended.

Question:
Take as input N, a number. Take N more inputs and store that in an array. Write a
recursive function which inverses the array. Print the values of inverted array.

My attempt:

By applying the normal for loop I was getting the output but attempting recursive approach of the same I am not getting the correct output.

Please guide.

each time you call your inverse function, you are redefining you br array

So should i pass the new array in the function itself, instead of declaring it inside. Or else please guide where to declare the new array.

yes the query got resolved. I passed the new array br as an argument in the inverse function. Thanks.