void find_winner(int array[]){
int i,questions[3],j=0;
for (i=0; i<3; i++){
questions[i]=1;
}
for (i=0; i<3; i++){
while (array[j+1]!=1){
questions[i]++;
j++;
}
}
for (i=0; i<3; i++){
printf("%d",questions[i]);
}
}

This function should find the winner of a game,that is the one that answered at the most questions.For example,if there is an array
[1]
[2]
[3]
[1]
[2]
[1]
[2]
[3]
the first player answered three questions,the second one answered 2 questions and the third one three.so,there are two winners,the player one and the player three.
My problem is that it just prints the number of questions that the first two players answered.What have I done wrong?
I hope someone can help me!!!