Pergunta de entrevista da empresa Baidu

Two sorted array, find their intersection, write exact code