WorkWave Interview Question

Write code to reverse a string