Update puzzle2.cpp