Problem 004 c++