Datamato Interview Question

write a code to reverse a string