Persistent Systems interview question

reverse string without using reverse usecallback que pass a callback fun from parent to child