Datadog interview question

coding challenge was to sort an array