NEC Corporation Interview Question

some puzzules