Fora Interview Question

Simple array sort with memory allocation considerations.