Oracle interview question

- DFS - Sort linked list