OYO interview question

Calculate a^n