Company: Ion Group_24july
Difficulty: medium
Minimum Upgrade Time Problem Description Given two servers and the time t1 and t2 respectively, in one second, each server undergoes the upgrade process. The servers receive requests at certain time intervals and pause upgrades during those seconds. The servers receive requests at multiples of req1 and req2 respectively. Determine the minimum total time (in seconds) required to upgrade both servers. Notes: Only one server undergoes the upgrade process at any given second. There may be seconds during which no server is undergoing an upgrade. Complete the function `getMinUpgradationTime` in the editor below. `getMinUpgradationTime` takes the following parameter(s): `int req1`: Indicates that the first server receives requests at multiples of `req1`. `int t1`: The total time in seconds to upgrade the first server. `int req2`: Indicates that the second server receives requests at multiples of `req2`. `int t2`: The total time in seconds to upgrade the second server. Returns: `long`: the min