Amazon Interview Question

leetcode: ship k in d days, whats min capacity