Pregunta de entrevista de Amazon

Simple questions about array and set, asked to write an algorithm to merge two increasing arrays into one increasing array