write shell script to reverse each word of string

what color is karl jacobs hair