Company: Axis bank fte
Difficulty: medium
Positive Total Performance Alex is working on a planet where there are N days in a year. He noticed that his performance on the i th day of the year was always equal to nums[i] . Alex is a hard worker, and he wants to come to work for the maximum number of days that he can. However, he does not want to have a negative total performance at any point in time since his boss will deduct his salary. Help Alex find the maximum number of days in the year that he can come to the office. Function Description Complete the solve() function. The function takes the following two parameters and returns a single integer: N : Represents the number of elements in the array nums : Represents the array of N elements Input Format for Custom Testing 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 an integer N , denoting the number of integers in the array. The second line contains N integers denoti