Big Oh Notation interview question

Reverse the given string and one inheritance based questions