Update Problem5.cpp