Amazon Interview Question

Invent fastest algorithm to calculate exponential