Any fool can write code that a computer can understand. Good programmers write code that humans can understand. Martin Fowler
Two arrays (example array1 and array2) contains the list of string. Write a program to find Intersection and union of Array Lists.
Array 1 items: [A, B, C] Array 2 items: [B, C, D, E, F] Intersection of two arrays: [B, C] Union of two arrays: [A, B, C, D, E, F]