Thanks to visit codestin.com Credit goes to kotlinlang.org
Returns the index of the last character in the char sequence or -1 if it is empty.
Thanks for your feedback!