Utility Function to check if the sum of the array elements can be made equal to X by removing either the first or last digits of every array element
bool makeSumX ( int arr [ ] , int X , int S , int i , int N ) {