UiPath interview question

Write an algorithm to reverse an string