Company: Amazon_10sep
Difficulty: medium
Minimum Delivery Time Problem Description Amazon operates two delivery drones, and each one has a fixed number of deliveries to complete: Drone 1 must complete delivery1 deliveries. Drone 2 must complete delivery2 deliveries. Time is measured in whole hours, numbered 1, 2, 3, ... . Each delivery takes exactly one hour. To stay healthy, both drones must charge at fixed times: Drone 1 charges at every hour that is a multiple of charge1 (hours charge1 , 2 * charge1 , ...), and cannot make a delivery during those hours. Drone 2 charges at every hour that is a multiple of charge2 , and cannot make a delivery during those hours. Both drones can charge at the same time, and the charging hours are fixed: they cannot be moved. Because of heavy drone traffic, at most one drone can be out making a delivery in any given hour . Find the minimum total time, in hours, needed for both drones to finish all of their deliveries. Complete the function minDeliveryTime(charge1, delivery1, charge2, delivery2