HackerRank Operator Overloading in C++ problem solution - TheCScience