Test Case 0 is not passing

Hi… so we can simply solve this ques by taking 2 cases… in one we find ans just by flipping a’s and in other just by flipping b’s and taking max of t=both the cases…
refer to my code https://ide.codingblocks.com/s/594206

u can also refer this approach https://ide.codingblocks.com/s/597422

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.