For the input 'sun moon star', which of the following outputs is correct after rearrangement?

Answer: A. moon star sun
The correct output places 'moon' first, followed by 'star' and 'sun'.