RUn time error on solvng

I am solving this question on gfg and basic case is passed but giving run error for others
ques link:-https://practice.geeksforgeeks.org/problems/inversion-of-array-1587115620/1#
solution link:-https://ide.codingblocks.com/s/462712

hello @prashantgupta9876

delcare ur temp array with size e+1.
and then try to submit again

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.