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