Office Practicum interview question

write a Java function that combines two arrays into a single deduplicated array