J.B. Hunt Transport Interview Question

(Whiteboard question) - write a method that returns the middle character from a given word.