HackerRank Exceptional Server in C++ problem solution - TheCScience