Nest Interview Question

reverse a string, code debug