Company: Amazon_10sep
Difficulty: medium
Minimum Delivery Time Problem Description Amazon operates two delivery drones, each tasked with completing a specific number of deliveries. Drone 1 must complete delivery1 deliveries. Drone 2 must complete delivery2 deliveries. Each delivery takes exactly 1 hour to complete. To maintain optimal drone health, both drones require charging at specific intervals: Drone 1 must charge every charge1 hours. Specifically, at hours which are multiples of charge1 . Drone 2 must charge every charge2 hours. Specifically, at hours which are multiples of charge2 . Both drones can charge simultaneously, and the charging sessions must occur at the exact specified intervals. Due to high drone traffic in the area, only one drone can be out making a delivery at any given time. Given integers delivery1 , delivery2 , charge1 , and charge2 , determine the minimum total time required for both drones to complete all their deliveries while adhering to the delivery and charging constraints. Examples Example 1: I