Question d’entretien chez BlackBerry

Write a function to reverse a string.