Count number of binary strings

using matrix exponentiation , getting wrong answer

hello @rohit_1906
remove mod , in the question it is not mentioned to take mod