Bridgenext interview question

oops concept