HackerRank C++ Variadics problem solution - TheCScience