Bombay Play interview question

Data structures and algorithms