Impressing the Boss

  • + 0 comments

    I iterate through the sales data array and check if there exists any consecutive pair of years where the sales decrease. If I find such a pair, I have tried modifying one of the elements to make the sales increase. If there are more than one such pairs or if modifying any of the elements does not result in increasing sales, then it is not possible to present the annual sales graph as required