Pergunta de entrevista da empresa InfinityLabs

Implement pow(a, n), where a and n are integers.