Pergunta de entrevista da empresa American Express

using the class syntax in JavaScript, code a small method that determines the winner of a poll