Updated 17.cpp