Segmentation Fault

I am getting seg fault in bubbleSort2 function. I have written it as exactly as bhaiya explained in the video.
Please check once

Link to my code

@S18LP0146
Line 19
if(j==n-1) return bubbleSort2(arr,0,n-1);

Please close this doubt