Domanda di colloquio di Amazon

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