American Express Interview Question

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