added a second method for deleting characters without the help of some builtins
implementation of an algorithm which reverses the order of words in a sentence