Question d’entretien chez ByteDance

linked list related problem, relatively easy