Accenture interview question

Reverse the string using streams