Swap Kth Element from Beginning with Kth element from end
“Swap Kth Element from Beginning with Kth element from end” is a basic problem of array data structure. Here, we are given an array of size ‘n’ and our task is to swap kth element from beginning with kth element from end, where (k<=n). Example (Swap Kth Element from Beginning...