If both the strings are equal then no operation needs to be performed
if s == f : NEW_LINE INDENT return 0 NEW_LINE DEDENT vis = dict ( ) NEW_LINE n = len ( s ) NEW_LINE pos = 0 NEW_LINE for i in range ( n ) : NEW_LINE INDENT if s [ i ] == ' _ ' : NEW_LINE DEDENT