Pergunta de entrevista da empresa Goldman Sachs

in interview they ask about a question to find doubly array element.