Teradata interview question

Reverse a LinkedIn list using Merge sort