Swap ( str [ l ] , str [ r ] )
c = string [ l ] ; NEW_LINE string [ l ] = string [ r ] ; NEW_LINE string [ r ] = c ; NEW_LINE l += 1 ; NEW_LINE r -= 1 ; NEW_LINE return " " . join ( string ) ; NEW_LINE