Cadence Design Systems interview question

Reverse linked list, pointers question