TotalEnergies Interview Question

Reverse each word in array of String