Pregunta de entrevista de Samsung Electronics

Fairly straight forward data structures and algorithm questions.