Find last index of substring
Returns the character index of the last occurrence of
sub in s, or -1 if not found. Indices are
character-based (Unicode code points).
s (String): The search
string.
sub (String): The substring to
find.
The character index of the last occurrence.