From the input 'dog cat mouse bird', what is the output after rearranging by the number of letters in each word?

Answer: D. bird cat dog mouse
Rearranging by the number of letters gives bird (4), cat (3), dog (3), mouse (5).