RBC interview question

A simple coding question having to do with sorting arrays