Question d’entretien chez Amazon

Question was a reversed linked list problem