add answer.cpp