TraceLink Interview Question

Puzzles, data structure