Loylogic Interview Question

explain oops concept