Fair Distribution of Cookies

Given bags of cookies and k children, distribute each bag to a child to minimize the maximum total cookies received by any child.

Examples
Input: [[8,15,10,20,8],2]
Output: 31
Hints

Fair Distribution of Cookies

Given bags of cookies and k children, distribute each bag to a child to minimize the maximum total cookies received by any child.