Pergunta de entrevista da empresa Amazon

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