NEC Corporation Interview Question

reverse string