Citadel Interview Question

How do you quickly raise a matrix to a given power