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

Answer: B. 2
The numbers are rearranged in ascending order, making '2' the second output.