Question d’entretien chez Splunk

Problem :Design an org-chart server. Server (preferably multi-threaded) reads the sample file containing employee data. File format: Its semi-colon separated, the first field is the employee-id, 2nd field is name [can be space separated] & the 3rd field is his manager’s id. employee-id will be equal to reports-to-id for CEO. The file can have empty lines. If number of tokens is not equal to 3, it should ignore these lines but report a message/warning and continue. The id’s can be numbers or strings Sample file: ########### 1: CEO: 1 2: CTO: 1 3: VP Sales: 1 4: Tech Manager1: 2 5: Tech Manager2: