Update problem14.cpp