Amazon Interview Question

sort an array by decreasing the time complexity