Sanket Systems Interview Question

oops concept with some example