Added return type to RevStrWrd function and output is displayed in Program.cs