Add a method to check is a number is pandigital.