Update hw-2-6-14.cpp