CTS Interview Question

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