NVIDIA Interview Question

effective way of an array sorting?