AKUNA CAPITAL Interview Question

K sorted array and cdf and sorting