Answer:
The most straight forward way to do it: in general string are zero index based array of characters, so you need to get the length of the string, subtract one and that will be the last character, some expressions in concrete languages would be:
In Python:
name = "blair"
name[len(name) - 1]
In JavaScript:
name = "blair"
name[name.length - 1]
In C++:
#include <string>
string name = "blair";
name[name.length() - 1];