Altimetrik interview question

Complexity, Datastructures Algorithms