Company: Zomato_1oct
Difficulty: medium
Minimum Server Upgrade Time Problem Description Given two servers and the time taken to upgrade each server in seconds, denoted by t1 and t2 respectively, in one second, one server undergoes the upgrade process. 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. The function accepts the following parameters: 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 minimum total time (in seconds) required to upgrade both servers Ex