Zscaler interview question

Sort a linked list in reverse order