CTS interview question

some string programs reverse string in each word,find occurance count