Try running your code for bbbbaaaa, code is returning 56 where the actual answer is 70.Look for the logic. Good work though.
Try running your code for bbbbaaaa, code is returning 56 where the actual answer is 70.Look for the logic. Good work though.