Update 面试题4.cpp