Company: Amazon_5nov
Difficulty: medium
Website Usage Analysis Problem Description The analysts at Amazon are analyzing the usage of the Amazon website. There are n users who visit the site during the analysis. The initial usage of the website before the analysis is zero units. The arrays start_time and end_time of n integers represent that the i th user was active on the website from start_time[i] second (till end_time[i] second (both inclusive)) after the start of the analysis, and the usage of the website will increase by 1 unit per second during this time period. For example, if a user was active from 4 seconds to 6 seconds after the start of the analysis, this will increase the usage by 3 units. The analysts want to find the time (in seconds) at which the usage of the website becomes greater than or equal to max_usage for the first time. Given n users, two arrays start_time and end_time , and an integer max_usage , find the time (in seconds) at which the usage of the website becomes greater than or equal to max_usage fo