reverses text from console. First c program