def reverse(s:string) StringBuilder.new(s).reverse end puts reverse('reversed')