If the input is '5 3 4 1 2', what will be the output after the rearrangement?

Answer: A. 1 2 3 4 5
The numbers are rearranged in ascending order.