### C++: Program to find smallest element is an array which is repeated exactly 'k' times

This is a problem from GeeksForGeeks. I have tried to write different code for the problem.

The problem says we have an array of elements . We have to find the smallest element which is repeated exactly

The problem says we have an array of elements . We have to find the smallest element which is repeated exactly

*k*times.