Add divqurey problem solution in C++