Number of distinct arrays you can generate from a given array by swapping 2 elements
Sigiloso
I wanted to use a hashset, but apparently arrays don't conform to the Hashable protocol in older compiler versions. Still completed the question using a different approach