Check corner case : If there is just one binary string , then print it and return .
if ( n < 2 ) { document . write ( arr [ n - 1 ] + " " ) ; } result = arr [ 0 ] ; for ( let i = 1 ; i < n ; i ++ ) { s1 = result ; s2 = arr [ i ] ; result = andOperationBitwise ( ) ; } document . write ( result ) ;