Question d’entretien chez CGI

Write a java program to reverse a string. ex: my name is cgi output: ym eman si igc