Baxture interview question

reveres string program in c#