AKUNA CAPITAL interview question

K sorted array and cdf and sorting