Chef and Equality Confusion

Can anyone please explain what would be the output of this case 1 5 5 5 5 6 2 and why?

Sorry explanation for more test cases is against codechef code of conduct. Please write this to problem setter if you want more details.