Loylogic interview question

explain oops concept