Help me in solving JASTRMCQ3 problem

My issue

i DID not het the logic for the correct answers. Kindly ezplain

My code

7496,7498,7499

Learning course: Strings using Java
Problem Link: CodeChef: Practical coding for everyone

@moak_1612
U have to follow the rules simple.
the rules are :-
if the server scores a point he’ll gets a point.
if receiver scores a point no one will get a point , but the receiver becomes server and the server becomes receiver.

and it is given initially alice is server.