¿Es el número un repdigit?

Un repdigit es un entero no negativo cuyos dígitos son todos iguales. Crea una función que devuelva si un número es un repdigit.

Ejemplos

Program.IsRepdigit(66) ➞ true

Program.IsRepdigit(1001) ➞ false

Program.IsRepdigit(-11) ➞ false

Notas

En este desafío, 0 y todos los números positivos de un solo dígito son repdigits. Los números negativos no son repdigits.