4 aaa dddd bbbbb aaaaaaaaaaaaa test case answer should be 1


#1

4 aaa dddd bbbbb aaaaaaaaaaaaa test case answer should be 1 but the solution of interviewbit answer is 84


#2

read the first line of the question again. string should be formed with ‘a’ and ‘b’ only.


#3

still wrong answer is we give the input 4 aaaaaa bbbbbb aaaaa bbbbbb