Pergunta de entrevista da empresa Amazon

2 sorted arrays. Give an algorithm for Union - Intersection of thoes 2 arryas