From the input 'dog cat mouse', what is the output after rearranging by the length of the words?

Answer: A. cat dog mouse
The words are rearranged by length: cat (3), dog (3), mouse (5).