NEC Corporation interview question

some puzzules