Pregunta de entrevista de Microsoft

Question that tests your coding knowledge instead of full data structure.