Baxture Interview Question

reveres string program in c#