Sort M elements of given circular array starting from index K
Given a circular array arr[] of size N and two integers K and M, the task is to sort M array elements starting from the index K. Examples: Input: arr[] = {4, 1, 6, 5, 3}, K = 2, M = 3Output: 4 1 3 5 6Explanation: After sorting 3 array elements starting from index 2 modifies arr[] to {4, 1, 3, 5, 6}.