Google Coding Interview Question - Find the Winner of the Circular Game - JavaScript