Toast Inc Interview Question

leecode how to reverse a string