Copperleaf interview question

reverse a string