Searching: Check if there exist 2 elements in an array whose sum is equal to the sum of rest of the array
Problem Statement: Given an array, you need to 2 elements in the array, such that the sum of all the elements of the array is equal to 2…