Suppose that bool linearSearch(const int A[], unsigned int n, const int x); is a prototype of the linear search method, where A[] is an array of n integers. Write the linear search method in C++ that returns true if value x exists in array A[]; otherwise it returns false.