ZS Associates interview question

Dsa problems and analytical problems