Verifies if a number is 1 to 9 pandigital