Bubble Sort Implementation

what is wrong in the code below:

in bubble_sort function j should start from 1 and go till n-itr.
Corrected Code