Exioms interview question

oops concepts