complete PathSum.cpp