Without passing the array in the solution code, how is the code working please tell
Please tell the reason , because array is not passed
because in your solution array is declared global so your function (which is declared below it) has access to it .
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.