Update Problem 16.cpp