in this method exercise
what is this line doing?
I understand that substring is creating another
string from an existing string (in this case str)
but position, position + length
position, depending on the length of the string is either 1 or 2 (1 for odd, 2 for even)
i get that, but how is is picking the middle of the string from position to position + length?