Problem
1. Write the algorithms for Deque in an array-based implementation.
2. Write the algorithm for Push in a linked implementation.
3. Write the algorithm for Pop in a linked implementation.
4. Write the algorithm for Enque in a linked implementation.
5. Write the algorithms for Deque in a linked implementation.