Implemented function to reverse C-Style string