ByteDance Interview Question

Reverse a linked list in-place