add Reverse sentence method in String class using string methods