Consint interview question

They asked me to inverse a string without using any function