Update factorial.cpp

I added some comments and an example. I'm not sure how this could exit the recursion though.