Pregunta de entrevista de Datadog

coding challenge was to sort an array