Mindsprint Interview Question

In DSA thay asked that to reverse a string?