Update Problem E: Mountain Passage.cpp