ServiceNow interview question

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