Find the length of the longest common suffix of strings
i = n - 1 NEW_LINE j = m - 1 NEW_LINE while i >= 0 and j >= 0 and str1 [ i ] == str2 [ j ] : NEW_LINE INDENT r += 1 NEW_LINE i -= 1 NEW_LINE j -= 1 NEW_LINE DEDENT