if remainder is present is original array return 1 , else return 0
for ( int i = 0 ; i < original_array . size ( ) ; i ++ ) { if ( original_array [ i ] == remainder ) { return 1 ; } } } return 0 ; } int main ( ) { vector < int > Arr = { 2 , 3 , 4 , 8 , 5 , 7 } ; int N = Arr . size ( ) ;