Conduent interview question

oops concept