Concept Flow - Partial sorting with np.partition()
Input array and k
Call np.partition(arr, k)
Partition array so elements < kth are left
Elements >= kth are right
Return reference to partitioned array (not in-place)
np.partition() rearranges the array so that the element at index k is in its sorted position, with smaller elements before it and larger after, without fully sorting.