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
static boolean makeSumX ( int arr [ ] , int X , int S , int i ) {