C++: A recursive source code to print name n times