Pregunta de entrevista de BlackRock

implement power function with sub-linear complexity