結果 : sort array with minimum time complexity