Python Code To Reverse String Using Stream