Domanda di colloquio di Intel Corporation

generic leetcode question about colored balls