Rently Interview Question

Asked about the oops concepts