Brain Station-23 interview question

Time complexity,Database, Sub query, OOP. Algorithm