Q) Given a sequence of boxes, each with some pens in it and a number X( > 0), choose two non-overlapping intervals of boxes such that:
Output the total number of boxes chosen.
Find size of smallest interval possible where sum of interval = X