Complete the getMiddle method that gets the middle character from a string if the string length is odd, or the middle character pair if it is even.

For example, getMiddle("Java") returns "av", and getMiddle("program")returns "g".

If the string parameter is empty, return the empty string.