Question d’entretien chez Microsoft

How to efficiently compute m^n?