Ad
  • Custom User Avatar

    You’re every iteration making chars.sort for word. I think, it’s not good idea, because for every word in array (per iteration) - have sense to do this… But for incoming word (from params of method), - better - make word.chars.sort just once!