Writing A Linear Search In Cpp