Problem Link: BROKPHON Problem - CodeChef
Feedback
can you have a look at the output and the test cases again, the output is incorrect
3
7
1 1 1 3 3 3 2
5
1 3 1 1 1
4
5 5 5 5
output
4
3
0
in the first test case
1 1 1 3 3 3 2
the 4th player has misheard and the last player so the output should be 2 not 4
in the second test case
1 3 1 1 1
the 2nd player has misheard and 3rd player has misheard so the output should be 2 not 3