Check if the current digit is divisible by 4
if ( str [ i ] == ' ' str [ i ] == ' ' ) { res = Math . min ( res , str [ i ] - ' ' ) ; } } for ( i = 0 ; i < len - 1 ; i ++ ) { for ( j = i + 1 ; j < len ; j ++ ) { var num = ( str [ i ] - ' ' ) * TEN + ( str [ j ] - ' ' ) ;