Wrong testcase while Submiting

google
Tags: #<Tag:0x00007f2428b538a0>

#1

A : [ 73, 58, 30, 72, 44, 78, 23, 9 ]
B : 5
for the provided testcase, after sorting
A : [ 9, 23, 30, 44, 58, 72, 73, 78 ]
Correct ans = 102
books allocated in above cases as - [ 9 + 23 + 30 , 44 + 58, 72 , 73 , 78]
but correct ans according to the ques is 110 which is greater than 102;