HackerRank Overloading Ostream Operator in C++ problem solution - TheCScience