Exponential Interview Question

run the code on the spot