Maximum Sum with Capacity Constraints | Hello Interview