NEC Corporation interview question

Questions basically from OOPs, DSA