Domanda di colloquio di Latch

Build an exponential function. This was really weird? If you're not using built in Math methods, this doesn't take long? The interviewer cut it extremely short.