1) Add a node after first node, call it NewNode.
2) Swap the firstNode's and NewNode's data.
3) Now change head pointer to point to head->next.
.
The head node is still 1 and we have just inserted the last node without travelling the entire node... So the time comoplexity is O(1)..
Authors- Vivek14 and Hirak