Swap kth element from the beginning and kth element from the end of linked list -- Amazon