Help me in solving STRMCQ3 problem

My issue

Logic behind it … I can not understand!!!

My code

7345,7347,7348

Learning course: Strings using C++
Problem Link: Multiple Choice Question Practice Problem in - CodeChef

@honey2455
just follow the rules bro :-
first Alice will server and when the server scores the point he will get one point or else he will become receiver and receiver will become server.
for ex BAB
First Alice will server but Bob won so bob will become server and Alice will become receiver .
then alice won so switch of service again .
last bob again switch of service .
so final score will be 0-0.
which is equal .
similarly u have to find out for all .