Function to count minimum number of flips
int findMiniFlip ( int nums [ ] , int n ) { string s = " " ; for ( int i = 0 ; i < n ; i ++ ) s += nums [ i ] ; char * end ; char tmp [ s . length ( ) ] ; strcpy ( tmp , s . c_str ( ) ) ;