Update 面试题9.cpp