Created a C++ program to find a repeated integer value in an array by using a hash map