Amazon interview question

Invent fastest algorithm to calculate exponential