A double-ended queue supports insertFirst(e), insertLast(e), removeFirst() and removeLast(). Starting from an empty deque, the operations are: insertFirst(10); insertLast(32); a ← removeFirst(); insertLast(28); insertLast(17); a ← removeFirst(); a ← removeLast(). The final value of a is .
Source: GATE DA