Python Join Time Complexity Of Sorting A String