Domanda di colloquio di Bloomberg

Why did you pick X data structure over Y when solving the problem?