Getting WA even after applying matrix expo


see this my solution… help me solving this.

code is giving correct answer…

ealier on there was a issue at the backend with the test cases