Added is_pandigital function