Domanda di colloquio di Scientific Games

I got some programming question about how to build a data structure