Saama Technologies interview question

Basis OOPS concepts