Amazon Interview Question

Basic array question involved sorting