Counting number of consecutive zeros from the end in the given binary String
for ( let i = 1 ; ; i ++ ) { let x = Math . pow ( 2 , i ) ; if ( lcm % x == 0 ) { ans = i ; } if ( x > n ) break ; } return ans ; } function __gcd ( a , b ) { return b == 0 ? a : __gcd ( b , a % b ) ; }