Criteo interview question

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