Company: Amazon_25july
Difficulty: medium
Minimum Storage Capacity Problem Description Within the Amazon Media Delivery Network, a distribution manager is tasked with efficiently allocating a collection of n digital movies among k different customers. Each movie is characterized by its file size, denoted by contentSize[i] for 1 . To facilitate the distribution process, the manager decides to use storage devices, ordering k storage devices with identical capacities. Each customer can receive a maximum of 2 movies, and every customer must receive at least one movie, also no movie should be left unassigned. Considering the challenges of transferring large media files through standard channels, the strategy involves determining the minimum storage capacity required for the devices. A storage device can only store movies if the sum of their sizes does not exceed the device's storage capacity. What is the minimum storage capacity of devices that you must order to be able to provide these movies to the customers? Complete the functio