Question d’entretien chez Consint

They asked me to inverse a string without using any function