A machine rearranges numbers by moving the largest to the last position in the first step.
Input: 2, 5, 1.
What is the output after the first step?
Show answer & explanation
Correct answer: C
Explanation
Given Input: 2, 5, 1
Rule: In the first step, the largest number is shifted to the last position, keeping the relative order of the remaining numbers unchanged.
• The largest number among 2, 5, and 1 is 5.
• The remaining numbers are 2 and 1.
• Moving 5 to the end gives: 2, 1, 5.
Therefore, the output after Step 1 is 2, 1, 5.