Cisco interview question

Implementation of Linear Search Algorithm: