Finding the smallest index for which A [ i ] != B [ i ] i . e the starting index of the unequal sub - array
for i in range ( N ) : NEW_LINE INDENT if ( A [ i ] != B [ i ] ) : NEW_LINE INDENT start = i NEW_LINE break NEW_LINE DEDENT DEDENT