Question d’entretien chez Coupang

Write a function that calculates exponents.