Pergunta de entrevista da empresa WD

given an array of 2 digit integers. Find the common digit between consecutive integers.