Write code to search an integer array named details for the value in the variable named findMe. The array has numElements number of elements in the list. Inside the loop, print out the element at each index separated with a hyphen, and stop searching the array once you find the value in the variable findMe. Note: if the value in findMe is not in the list, then you will print out each element in the array.
For example, if the array has {1, 2, 3} and findMe is 2, you would print:
1-2
in c++ format