Chevron Interview Question

List sorting and using arrays