Minions and Voting Practice Problem in 1800 to 2000 difficulty problems

Why does my code fail?