In a race, five runners A, B, C, D, and E finish in the following order: A is not first. B finishes before C but after D. E finishes last. Who finishes first?
Input: '1 2 3 4 5'. After the first rearrangement step, the sequence is '3 1 4 2 5'. What will be the output after the second rearrangement step if it is '4 3 5 1 2'?