Citadel interview question

How do you quickly raise a matrix to a given power