Capgemini interview question

in coding : reverse a linked list swap two numbers in linkedlist