DraftKings interview question

Standard Leetcode Medium or Easy