Count the Number of K-Big Indices
For each index, count strictly smaller values on the left and on the right; keep indices where both counts reach k.
For each index, count strictly smaller values on the left and on the right; keep indices where both counts reach k.