Question d’entretien chez Amazon

Solve a coding question based on Stacks