I have this small function that takes two integers a and b and checks if a is b raised to some exponent. This is the code.
a
b
You forgot to return on the last else clause.