Autodesk Interview Question

Sort arrays in particular orders