Given a queue of people represented as a Doubly Linked List, you are asked to mix the list in a specific way. You should bring the last person in the queue between the first and the second in the initial queue, the person before the last one, between the second and the third in the initial queue, etc.
Input
The initial data for the linked list is obtained automatically. You don’t need to do anything.
People are represented with their names which consist of Latin letters only and don’t exceed length of 15.