The challenge is this:
Write a function that returns the middle element of an array. When array size is even, return the first of the two middle elememnts.
The word elements is written wrong.
The solution from the book doesn’t work for me.
my solution is:
return array[(array.count - 1) / 2]