Pergunta de entrevista da empresa Trading Technologies

Asked to find the middle of the string using python