Insert a node at a specific position in a linked list