Implement a function that categorizes the amount of rainfall based on the given integer input representing millimeters of rainfall. The function should classify the rainfall into three distinct categories:
If the rainfall is less than 3 mm, categorize it as 'LIGHT'.
If the rainfall is between 3 mm (inclusive) and 7 mm (exclusive), categorize it as 'MODERATE'.
If the rainfall is 7 mm or more, categorize it as 'HEAVY'.
Function Signature
The function should be defined as follows:
python
def categorize_rainfall(X: int) -> str:
Input Requirements
X: An integer representing the amount of rainfall in millimeters.
Output Requirements
The function should return a string that indicates the category of rainfall:
'LIGHT' for rainfall less than 3 mm
'MODERATE' for rainfall between 3 mm and 7 mm
'HEAVY' for rainfall 7 mm or greater
Implementation
The solution must be written in a file called /app/solution.py. Ensure that your implementation adheres to the specified function signature and accurately categorizes the rainfall based on the descriptions provided.