Pregunta de entrevista de Pexlify

Sort an array and explain/give time complexity.