TRON interview question

Classic data structure and algorithm coding questions.