Update MaxSum.cpp