Pergunta de entrevista da empresa CG Infinity

Take a 10 element array by user and find the number next to the middle element of the sorted array?