Amazon Interview Question

fixing a sorting array. an ascending