Awaaz.De interview question

Complexity based LLD DSA problem