Birdeye interview question

Data structures and coding round