Pregunta de entrevista de Criteo

Write a code to retrieve the same number in 2 sorted arrays