Linear Search Using Function