AlphaSights Interview Question

Reverse a string.