Question d’entretien chez Amazon Flex

How do you find the smallest integer not present in an unsorted array.