NEC Corporation interview question

oops concepts