Update problem16.cpp