for each character of str1 , mark its presence as 1 in 'present[]
' NEW_LINE INDENT for i in range ( 0 , l1 ) : NEW_LINE INDENT present [ ord ( str1 [ i ] ) - ord ( ' a ' ) ] = 1 NEW_LINE DEDENT DEDENT