Pergunta de entrevista da empresa FactSet

Going through some code explaining what it did, was a function with 2 parameters calcuating a^b with recusion and showing how it is executed