HackerRank Conditional Statements in c++ problem solution - TheCScience