Altimetrik interview question

data structure, algorithms