Pergunta de entrevista da empresa Oracle

Coding round questions: merge two sorted arrays without using extra space. the second one was, find all pairs in the array with a given sum in O(n) time.