Recursive Bubble Sort

What is the significance of last return statement, please explain with example.

@skysinghthakur
Please specify return statement in which line

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.

at line number 40? what is does?

Hi
without the return also the code works fine
it is just used so that the code can the return when u come to an end. like the entire array is processed.