[yanan] finish answerProblem algo