Algorithm To Reverse A String Using Stack