Update factorial.cpp