Viasat interview question

Delete n’th largest/smallest number from array