Question d’entretien chez IBM

Reverse of two string without using in build function