You are creating an undo buffer that stores data modifications. You need to ensure that the undo functionality undoes the most recent data modifications first. You also need to ensure that the undo buffer permits the storage of strings only. Which code segment should you use?
A.
Stack<string> undoBuffer = new Stack<string>();
B.
Stack undoBuffer = new Stack();
C.
Queue<string> undoBuffer = new Queue<string>();
D.
Queue undoBuffer = new Queue();