Hi,
Sorry, you have to write the letter, but then we will try to help you with comments.
Just keep it simple. What would your friend say to the judge, if the judge asked if he had anything he wanted to say?
Best wishes, Clive