Vulcan Cyber interview question

Q: how to sort an array