reverse a string
find k-th element from the end of the single-linked list
sorting stack