FIND-ME(A,key)
Input: A: an array of elements, numbered 0 through n-1
key: an item of the type contained in the array
Output: The location of key in A or n if not found.
- i ← 0
- while i < n and A[i] ≠ key
- i ← i + 1
- return i