For the input 'red blue green yellow', what is the output after moving the last word to the front?

Answer: A. yellow red blue green
Moving 'yellow' to the front results in 'yellow red blue green'.