Pergunta de entrevista da empresa Meta

Implement a power function from scratch that is efficient. He then prompted me to use binary operations to do it.