Light & Wonder Interview Question

reverse array for a given string