Check If Digits Are Equal in String After Operations II
Repeatedly replace neighbouring digits with their sum mod 10 until two digits remain, then compare them.
Repeatedly replace neighbouring digits with their sum mod 10 until two digits remain, then compare them.