Given array
{{myArray}}
Permutations
{{val}}