C++ : Check if an array of integers contains 10 or 20 twice

C++ : Check if an array of integers contains 10 or 20 twice