Can you develop a code to invert a linked list?

Free for the first 3 answer contributors

Interview question asked to Design Verification Engineers interviewing at NVIDIA, Bosch, Nuro and others: Can you develop a code to invert a linked list?.