SEQ- Help Matrix Exponentiation

My solution is failing at last test case , any hint it is so