Tata Group Interview Question

oops concepts