Domanda di colloquio di Samsung Electronics

Fairly straight forward data structures and algorithm questions.