Big Oh Notation interview question

Dsa and oops based and real life based