GlobalLogicTask

Set of characters will be taken from the input word, so the program works for any word.

Sort orders using frequency value first, then it sorts over the word length value.