Question d’entretien chez Amazon

linked list, stacks, debugging & Expected Output