Add max sum problem.