Office Practicum Interview Question

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