Visa Inc. interview question

find the middle element in an array