Supposing we have a KA $k$-sorted array, is one in which every element is at most distance $k$ from its position when the array is sorted. The complexity of sorting such array is in O(n*logk)$O(n\log k)$. But if k equals 1$k=1$, logk would be 0then $\log k=0$ so what happens? What is athe complexity of sorting an array where each element is at most one place away from its sorted position?