Question 1
Write a function is_decreasing_number(n: int) -> bool that checks if a given 4-digit number is decreasing, meaning each digit is strictly less than the digit before it (from left to right).
The function should return True if the number meets the criteria and False otherwise.
Constraints
The input number will be a 4-digit number, which means it will be in the range of 1000 to 9999.
Example
>>> is_decreasing_number(4321)
True
>>> is_decreasing_number(4312)
False
>>> is_decreasing_number(9876)
True
>>> is_decreasing_number(1111)
False
>>> is_decreasing_number(3210)
True
Your task
Implement this function:
def is_decreasing_number(n: int) -> bool:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: n.
Example
Input
4321
Output
True