Amazon Interview Question

Why Amazon, design an algorithm to rearrange numbers in a sequency, time complexity of the algorithm