RBC Interview Question

A simple coding question having to do with sorting arrays