Question d’entretien chez Mr. Cooper

write the reverse of string function using factorial?