Thomson Reuters interview question

data structure and algorithm related