What item is at the front of the deque after these statements are executed?

DequeInterface waitingLine = new LinkedDeque();
waitingLine.addToFront(“Jack”);
waitingLine.addToBack(“Rudy”);
waitingLine.addToBack(“Larry”);
waitingLine.addToFront(“Sam”);
String name = waitingLine.getFront();
name = waitingLine.getBack();
Jack
  • Adam
  • Rudy
  • Sam

There are no hints for this question