HackerRank Sets-STL in C++ problem solution - TheCScience