NVIDIA interview question

effective way of an array sorting?