Reading Zaphod_b solution gave me an idea.
Make an infinite loop because you cannot know the number of times it will be an invalid vote.
Have an index which you will increment each time there is a...