HackerRank Box It! in C++ problem solution - TheCScience