solution : Let ,
, K = string with 4 consecutive A of length 6 => 4*1*1*1*1*4 + 4*4*1*1*1*1 + 1*1*1*1*4*4 + 1*4*1*1*1*1 + 1*1*1*1*4*1= 56
+
A = String with 5 consecutive A of length 6 => 4*1*1*1*1*1 + 1*1*1*1*1*4 = 8
+
B = String with 6 consecutive A of length 6 => 1*1*1*1*1*1 => 1
65 answer .
is there any other approach because if question is like : 2 consecutive a then making cases will become tedious