ServiceNow interview question

oops concepts