WD Interview Question

1) Turn 4321 to 1234.