Pregunta de entrevista de ServiceNow

Implement Math.pow() method efficiently and the order of complexity with proof.