Write a Python function that returns the number of overlapping characters between two strings (the number of characters that are the suffix of one string and the prefix of another).
system
ek paythan fnction likhen jo do taar ke bich ativyapee varnon kii sankhya lautaata he (varnon kii sankhya jo ek string ke pratyay or duusare ke upsarg hai).
user
yahan ek paythan fnction he jo do taar ke bich ativyapee varnon kii sankhya ko ginata he:

DEF overlap (string 1, string 2):
    yadi len (string2) <len (string1):
        asthaayee = string1
        string1 = string2
        string2 = asthaayee
    
    ke liye main range main (0, len (string1) + 1):
        if (string1 [i:] == string2 [:( len (string1) - i)]):
            todna

    J ke liye range (0, len (string 1) + 1):
        if (string2 [j:] == string1 [:( len (string2) - j)]):
            todna

    ritern maiks (len (string 1) - I, len (string 1) - je)

yah fnction lambey string kii shuruyaat se puure chote string kii tulana karke shuru hota he.yadi vah mail nahin khaataa he, to yah lambaai ke ghatate kram main chote string ke har pratyay kii koshish karata he jab tak ki yah anya string kii shuruyaat ke liye ek match nahin miltaa he.phir fnction phir se ek hi kaam karata he, sivaay iske ki yah chote string kii shuruyaat kii tulana lambey string ke pratyay se karata he.
assistant
<|system|>
</s>
<|user|>
ek paythan fnction likhen jo do taar ke bich ativyapee varnon kii sankhya lautaata he (varnon kii sankhya jo ek string ke pratyay or duusare ke upsarg hai).</s>
<|assistant|>
yahan ek paythan fnction he jo do taar ke bich ativyapee varnon kii sankhya ko ginata he:

DEF overlap (string 1, string 2):
    yadi len (string2) <len (string1):
        asthaayee = string1
        string1 = string2
        string2 = asthaayee
    
    ke liye main range main (0, len (string1) + 1):
        if (string1 [i:] == string2 [:( len (string1) - i)]):
            todna

    J ke liye range (0, len (string 1) + 1):
        if (string2 [j:] == string1 [:( len (string2) - j)]):
            todna

    ritern maiks (len (string 1) - I, len (string 1) - je)

yah fnction lambey string kii shuruyaat se puure chote string kii tulana karke shuru hota he.yadi vah mail nahin khaataa he, to yah lambaai ke ghatate kram main chote string ke har pratyay kii koshish karata he jab tak ki yah anya string kii shuruyaat ke liye ek match nahin miltaa he.phir fnction phir se ek hi kaam karata he, sivaay iske ki yah chote string kii shuruyaat kii tulana lambey string ke pratyay se karata he.</s>
