Program to search for an element in an array.