TotalEnergies interview question

Reverse each word in array of String