EPAM Systems interview question

Reverse a single linked list