HackerRank C++ Class Template Specialization problem solution - TheCScience