Truncate Sentence

给一个sentence, 里面没有前置和后置空格, 求前k个words的sentence.