Starting at 1, keep doubling until the value is greater than the limit, then return it. For a limit of 10 that is 16.
int firstPowerOver(int limit)
Examples
There are also 4 hidden tests you can't see. Solve the problem, not the examples.