Cavisson Systems Interview Question

Linked list swap elements from end and begin