Check Power Equality

Create a function to determine if k raised to k equals n for any given inputs (n, k).

Write a function that accepts two integer parameters: 'n' and 'k'. The function should check whether 'k' raised to the power of 'k' is equal to 'n'. If it is, the function should return `True`. Otherwise, the function should return `False`. ### Input/ Parameters - `n` (1 <= `n` <= 10^9): An integer to compare with 'k raised to the power of k'. - `k` (1 <= `k` <= 10^9): An integer to raise to its own power. ### Return Value - The function returns `True` if 'k' to the power of 'k' equals `n`. - The function returns `False` if 'k' to the power of 'k' does not equal `n`. ### Examples ```python # Since 2^2 == 4, the function should return True solution(4, 2) # Returns: True # Since 9^9 == 387420489, the function should return True solution(387420489, 9) # Returns: True # Since 5^5 != 3124, the function should return False solution(3124, 5) # Returns: False # Since 3^3 != 17, the function should return False solution(17, 3) # Returns: False ```