EarnIn interview question

Find the length of each word in a string without using split operation.