Find kth-max number in an given array.