Question d’entretien chez Amazon

Converting from linked list to int