Given 3 arrays, write a program that creates all the different permutations, without any duplicates.