Nascent interview question

Asked to sort an unknown size array with a duplicate value and find the duplicate value.