fun Ġmain ( args : ĠArray < String >) Ġ{ ĊĠĠĠ Ġval Ġsentence Ġ= Ġ" Go Ġwork " ĊĠĠĠ Ġval Ġreversed Ġ= Ġreverse ( sentence ) ĊĠĠĠ Ġprintln (" The Ġreversed Ġsentence Ġis : Ġ$ reversed ") Ċ } Ċ fun Ġreverse ( sentence : ĠString ): ĠString Ġ{ ĊĠĠĠ Ġif Ġ( sentence . isEmpty ()) ĊĠĠĠĠĠĠĠ Ġreturn Ġsentence ĊĠĠĠ Ġreturn Ġreverse ( sentence . substring ( 1 )) Ġ+ Ġsentence [ 0 ] Ċ }