Calculating pandigitals and a very brute force way