Question d’entretien chez Amazon

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