Allscripts interview question

Write a program on paper to search an element in an array.