Domanda di colloquio di Amazon Flex

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