Driver code
s = " adceb " NEW_LINE arr = [ ] NEW_LINE for i in s : NEW_LINE INDENT arr . append ( ord ( i ) - ord ( ' a ' ) ) NEW_LINE DEDENT sortString ( arr , len ( s ) , math . floor ( len ( s ) / 2 ) ) NEW_LINE