Implement a Python function that calculates the closest multiple of a given integer c to the result of raising a to the power of b. The result should be the nearest multiple of c that is either less than or equal to a ** b or greater than a ** b.
b (0 <= b <= 30): the exponent to which a is raised.
c (1 <= c <= 10^9): the integer for which the closest multiple is calculated.
Output Requirements
The function returns a single integer, which is the closest multiple of c to a ** b.
Implementation
Write the solution in a file called /app/solution.py.
Ensure the implementation handles both positive and negative values of a.
Example
python
# Example usage:
result = find_closest_multiple(2, 3, 5) # Here, 2^3 = 8, and the closest multiple of 5 is 10
print(result) # Output: 10
result = find_closest_multiple(3, 2, 4) # Here, 3^2 = 9, and the closest multiple of 4 is 8
print(result) # Output: 8