<garvit244>1016_1.py
def queryString( S, N):
    for num in range(1, N+1):
        binary_str = ''
        while (num != 0):
            binary_str += str(num%2)
            num /= 2
        reversed_str = binary_str[::-1]
        
        if reversed_str not in S:
            return False
    return True
def sample_funcname ( var_0 , var_1 ) :
    for var_4 in range ( 1 , var_1 + 1 ) :
        var_6 = ''
        while ( var_4 != 0 ) :
            var_6 += str ( var_4 % 2 )
            var_4 /= 2
        var_10 = var_6 [ : : - 1 ]
        if var_10 not in var_0 :
            return False
    return True
