NVIDIA interview question

Sort an array, fine missing number in array