Function to validate number ( Check iffrequency of a digit is less than thedigit itself or not )
def validate ( n ) : NEW_LINE INDENT for i in range ( 10 ) : NEW_LINE INDENT temp = n ; NEW_LINE count = 0 ; NEW_LINE while ( temp ) : NEW_LINE DEDENT DEDENT