LinkedIn Interview Question

exponent of a number