D Maximum Sum