Given an array that contain n integers.You have to choose any subarray and perform following operation Reduce an element A[i] by 1 that will cost 1 unit Your task is determi