Pergunta de entrevista da empresa Microsoft

The initial interview is really easy - given an array of integers and a key, write a method that determines if the key is contained in the array.