4i Apps interview question

Sort the array in ascending order