Company: BrowserStack SDET
Difficulty: medium
Bob wants to complete all the levels of a game in the minimum possible time. Each level takes a consecutive number of minutes to complete, and Bob can only play the game during breaks at work. Each day has a total of minutes, and there is a break that lasts for minutes. Saiki's goal is to determine if he can complete the game and, if so, find the minimum number of minutes required to finish all the levels. Function description Complete the solve function. This function takes the following 5 parameters and returns the answer: n : Represents the number of breaks m : Represents the number of game levels t : Represents the time to complete each level k : Represents the length of each day B : Represents the list of pairs with values l and r the range of break Input format for custom testing Note : Use this input format if you are testing against custom input or writing code in a language where we don't provide boilerplate code. The first line contains T , which represents the number of test