Pregunta de entrevista de Microsoft

How to efficiently compute m^n?