Swap Kth node from beginning with Kth node from end in a Linked List
Problem You are given the head of a linked list, and an integer k. Return the head of the linked list after swapping the values of the kth node from the beginning and the kth node from the end (the list is 1-indexed). OR Given a Linked List and a number k, Swap Kth Node from the front with the Kth Node from the End Examples Example 1: ...