If we have found a char equal to current char and does not exist side to it , return false
if string [ i ] in st : NEW_LINE INDENT return False NEW_LINE DEDENT st . add ( string [ i ] ) NEW_LINE return True NEW_LINE