Accenture Interview Question

Reverse the string using streams