Algorithmic implementation of Linear Search

For question 2.1-3 Page 22