Pregunta de entrevista de Microsoft

Coding tests, mostly about data structure