Domanda di colloquio di LinkedIn

Similar to leetcode 528, random pick with weight