Five people are standing in a line: X, Y, Z, W, and V. X is to the left of Y but to the right of Z. W is to the right of V. Who is standing at the extreme right?

C. W

A, B, C, D, and E are five friends. A is older than B but younger than C. D is older than E but younger than A. Who is the youngest?

D. E

In a race, five participants A, B, C, D, and E finish in the following order: A is ahead of B but behind C. D finishes before E but after A. Who finishes last?

D. E

Given the input 'apple banana cherry date', which of the following is the correct output after rearrangement?

A. BANANA CHERRY DATE APPLE

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

A. 3 4 5 1 2