Topic: Linked List Problem / Level: beginner

Problem: Write a function to swap the first and last nodes of a doubly linked list.

Run the code to see the output here...