working cpp big digits soln