Doubt in problem statement

Can someone explain how team3 wins team 4 which is given in problem statement.
link to problem CodeChef: Practical coding for everyone

I have written it there that the away team wins only if it is a better team. In all other cases home advantage makes the team with lower index win.
Hope your doubt is solved

got it thanks :slightly_smiling_face: