Loading problem…
You're building a browser navigation feature that needs to reverse the order of visited pages. Given a linked list of page visits, you need to reverse the list to show pages in reverse chronological order (most recent first).
Given the head of a singly linked list, reverse the list and return the new head.