LTIMindtree Interview Question

Reverse a string using streams