Ladders interview question

Write a function that, given a string of words, returns the average word length.