lastIndexOf(const char ch) function

use: return index of last occurrence of the character ch in string, -1
otherwise.