GE Vernova interview question

Implement linked list, reverse it, sort it.