Pregunta de entrevista de TRON

Classic data structure and algorithm coding questions.