Amazon interview question

make a function given that will receive two arrays find and return the union using array list