Implement a function that calculates the rebate amount provided by an insurance company based on the maximum rebatable limit and the repair costs incurred.
Functionality Requirements:
Define a function calculate_rebate that takes two integer parameters:
X: Represents the maximum rebatable amount in lakhs.
Y: Represents the amount required for repairing the damage in lakhs.
The function should return the lesser of the two amounts, X and Y, which represents the actual rebate amount the insurance company will provide.
Input/Output Requirements:
Inputs:
X: An integer (0 <= X <= 100) indicating the maximum rebatable amount in lakhs.
Y: An integer (0 <= Y <= 100) indicating the repair cost in lakhs.
Output:
An integer indicating the rebate amount, which should be the minimum of X and Y.
Implementation Instructions:
Write the implementation in a file named /app/solution.py.
Ensure the function is correctly defined according to the provided signature.