Reverse the letters of the alpha sequences in a string without using any built in functions