Can you explain same logic for input BACC

i am getting wa for this :((

Hello @Muskan-Gupta-598128740703036,

Can you share the code with me?

code logic is explained in video

i havnt written the code yet becoz i am not satisfied with the recurrence

https://online.codingblocks.com/app/player/67225/content/117096/8272/lecture

this is link of video

Hello @Muskan-Gupta-598128740703036,

Refer to the following link:

This will help with your confusion.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.