Pergunta de entrevista da empresa Bloomberg

LeetCode #1823 but you’re basically just implementing the elimination step with a circular linked list + pointer rewiring instead of doing it with math/array tricks