Minimum integer to be appended to convert given Array into equilibrium
Given an array A[] of length N, the task is to find the minimum integer to be appended at any end in the array to make it equilibrium. An array is in equilibrium if there exists any index i such that:sum of A[0, . . ., i-1] = sum of A[i+1, . . ., N-1] Example: Input: A[] = {5, 2, 6, 4, 3, 2} Output: