Question d’entretien chez BNY

Linkedlist reverse question in hackerrank need to submit