Frage im Vorstellungsgespräch bei DraftKings

Practically a Leetcode Question for the Coding Question