Pregunta de entrevista de Fora

Simple array sort with memory allocation considerations.