if current element is negative , shift positive elements of arr [ 0. . i - 1 ] , to one position to their right
j = i - 1 ; while ( j >= 0 && arr [ j ] > 0 ) { arr [ j + 1 ] = arr [ j ] ; j = j - 1 ; }