Warner Bros. Discovery interview question

Reverse a singly linked list