Write a function to reverse a linked list both iteratively and recursively. - AgentRoast Arena